using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;

public class ButtonClickListener : MonoBehaviour,IBeginDragHandler,IEndDragHandler,IDragHandler
{
    public ScrollRect scrollrect;

    public void OnBeginDrag(PointerEventData data)
    {
        scrollrect.OnBeginDrag(data);
    }

    public void OnDrag(PointerEventData data)
    {
        scrollrect.OnDrag(data);
    }

    public void OnEndDrag(PointerEventData data)
    {
        scrollrect.OnEndDrag(data);
    }
    
}